<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorator="layouts/layout" th:with="header='外购物料入库明细', subtext='管理系统中外购物料入库明细数据'">

<head>
  <title>外购物料入库明细</title>
</head>
<body>
  
  <th:block layout:fragment="content">
    <div class="box-body m-b-sm border-bottom">
      <form class="form-horizontal search-form" role="form" th:object="${r}" novalidate="novalidate" >
        <div class="row">
         		<div class="col-sm-3">
	          	<div class="form-group">
	              <label class="control-label col-lg-5">单号</label>
	              <label class="form-control-static" id='documentNumber'>[[*{documentNumber}]]</label>
	            </div>
	        </div>

	        <!--<div class="col-sm-3">
	          	<div class="form-group">
	              <label class="control-label col-lg-5">类型</label>
	              <label class="form-control-static" id='type'>[[${@CODES.textByValue('ASN_TYPE', r.type)}]]</label>
	            </div>
	        </div>-->
	        <!--<div class="col-sm-3">
	          	<div class="form-group">
	              <label class="control-label col-lg-5">预期到货时间</label>
	              <label class="form-control-static" id='expectedTime'>[[${#calendars.format(r.expectedTime, 'yyyy-MM-dd HH:mm:ss')}]]</label>
	            </div>
	             <label class="form-control-static" id='deliverystatus'>[[${@CODES.textByValue('ASN_DELIVERY_STATUS', r.deliveryLastStatus)}]]</label>

	        </div>-->

	        <div class="col-sm-3">
	          	<div class="form-group">
	              <label class="control-label col-lg-5">状态</label>
	              <label class="form-control-static" id='deliverystatus'>[[${@CODES.textByValue('ASN_DELIVERY_STATUS', r.deliveryLastStatus)}]]</label>
	            </div>
	        </div>
	    </div>
	    <!-- 
        <div class="row m-t-sm">
	        <div class="col-sm-3">
	          	<div class="form-group">
	              <label class="control-label col-lg-5">供应商编码</label>
	              <label class="form-control-static" id='supplierCode'>[[*{supplierCode}]]</label>
	            </div>
	        </div>
	        <div class="col-sm-3">
	          	<div class="form-group">
	              <label class="control-label col-lg-5">供应商名称</label>
	              <label class="form-control-static" id='supplierName'>[[*{supplierName}]]</label>
	            </div>
	        </div>
	    </div>
	     -->
      </form>
    </div>

    <div class="row">
      <div class="col-lg-12">
        <div class="box">
          <div class="box-body">
            <h2>


              <a  class="btn btn-primary btn-sm" th:href="@{|${baseUrl}/add|}" th:title="添加ASN明细">
                <i class="fa fa-fw fa-plus"></i> 添加
              </a>

              <a  class="btn btn-primary btn-sm palAll" href="javascript:;" th:title="码盘">
                <i class="fa fa-fw fa-plus"></i> 码盘
              </a>

              <a  class="btn btn-primary btn-sm lineRecvAll" href="javascript:;" th:title="按订单行收货">
                <i class="fa fa-fw fa-plus"></i> 收货
              </a>


                <!--
              <a  class="btn btn-primary btn-sm palRecvAll" th:href="@{|${baseUrl}/palrecv|}" th:title="码盘并收货">
                <i class="fa fa-fw fa-plus"></i> 码盘收货
              </a>
              <a  class="btn btn-primary btn-sm printAll" href="javascript:;" th:title="打印物料标签">
                <i class="fa fa-fw fa-plus"></i> 打印
              </a>
-->

              <a  class="btn btn-danger btn-sm delAll" href="javascript:;" th:title="删除ASN明细">
                <i class="fa fa-fw fa-trash"></i> 删除
              </a>

              <!--
              <a class="btn btn-default back" th:href="@{|/inbound/asn|}" th:title="返回ASN单证">
                <i class="fa fa-fw fa-reply"></i> 返回单证
              </a>
              -->
  </h2>
  <div id="tableWrapper">
    <table id="table" class="table table-striped table-hover">
      <thead>
        <tr>
          <th>HeaderId</th>
          <th style="width:40px;">
            <a href="javascript:;" class="selectAll" title="全选">全选</a>
          </th>

          <th style="width:40px;">行号</th>
          <th style="width:70px;">物料编码</th>
          <th style="width:140px;">物料描述</th>
          <th style="width:70px;">订单数量</th>
          <th style="width:70px;">组盘数量</th>
          <th style="width:70px;">收货数量</th>
          <th style="width:80px;">供应商</th>
          <th style="width:80px;">物料WBS</th>
          <th style="width:70px;">货权方</th>
          <th style="width:80px;">WMS批</th>
          <th style="width:50px;">状态</th>
          <th style="width:50px;">操作</th>

        </tr>
      </thead>
      <tbody>
      </tbody>
    </table>
  </div>
</div>
</div>
</div>
</div>
<form id="delForm" method="post" style="display: none" th:action="@{|${baseUrl}/del|}">
<input id="ids" type="hidden" name="ids" />
</form>

<form id="palletizeForm" method="post" style="display: none" th:action="@{|${baseUrl}/palletize|}">
<input id="ids" type="hidden" name="ids" />
</form>

<form id="lineRecvForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/linerecv|}">
<input id="ids" type="hidden" name="ids" />
</form>



</th:block>
<th:block layout:fragment="scripts">
<script th:inline="javascript">
// 后端传入前端使用的变量JS中定义
var headerId = /*[[${params['headerId']}]]*/ '';
var status = /*[[${r.status}]]*/ '';

var VALUES_MAP_DICT_TYPE        = /*[[${@CODES.valuesMapOfType('ASN_STATUS')}]]*/ {};
var VALUES_MAP_DICT_DEL_STATUS  = /*[[${@CODES.valuesMapOfType('ASN_DELIVERY_STATUS')}]]*/ {};

</script>
<script th:src="@{|${theme}/js/app/inbound/asndetails_list.js?v=${applicationVersion}|}" th:inline="javascript"></script>
</th:block>
</body>

</html>
